﻿<%@ Page Title="特色小吃详情页" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    Inherits="Wjtour.Web.Front.fooddetail" %>

<%@ Import Namespace="Wjtour.Domain" %>
<%@ Import Namespace="Wjtour.Common" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script language="javascript">
        $(document).ready(function () {
            $('#myTab a:first').tab('show');
            $('#mytab a').click(function (e) {
                e.preventDefault();
                $(this).tab('show');
            });
        });

    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="content" runat="server">
    <div class="ipage scenicpage">
        <%if (data != null)
          { %>
        <div class="path" style="width: 668px;">您所在的位置：<a href="/">首页</a> &gt; <a href="travelindex.aspx">旅游指南</a> &gt; 地方美食 &gt; 特色小吃 &gt; <%=data.title %> </div>
        <!-- 浮动块 -->
        <div class="scenicleft travelsleft">
            <h1><%=data.title %></h1>
            <div class="articleinfo">
                发布时间：<%=data.addtime.Value.ToString("yyyy-MM-dd HH:mm:ss") %>
            </div>
            <div class="clear"></div>
            <div class="content">
                <%=data.introduce %>
            </div>
        </div>
        <%} %>
        <!-- 侧面-->
        <div class="scenicright travelsright">
            <img src="css/images/title01.png" />
            <div class="title"></div>
            <ul class="arlist floatlist">
                <%
                    if (caiyao != null && caiyao.Count > 0)
                    {
                        for (int i = 0; i < caiyao.Count; i++)
                        {
                            var c = caiyao[i];
                %>
                <li><span><%=(i+1) %></span><a href="fooddetail.aspx?id=<%=c.id %>" target="_blank"><%=c.title %></a></li>

                <%}
                    }%>
            </ul>

            <img src="css/images/title02.png" style="margin-top: 15px;" />
            <div class="title"></div>
            <%
                if (xiaochi != null && xiaochi.Count > 0)
                {
                    var firstxiaochi = xiaochi.First();
            %>
            <div class="best">
                <%if (!string.IsNullOrEmpty(firstxiaochi.logo))
                  { %>
                <img src="<%=firstxiaochi.logo %>" />
                <%}
                  else
                  { %>
                <img src="css/images/tmp13.png" />
                <%} %>
                <div>
                    <h4><%=firstxiaochi.title %></h4>
                    <span><%=Utility.CutString(firstxiaochi.introduce,11,true) %>[<a href="fooddetail.aspx?id=<%=firstxiaochi.id %>" target="_blank">[详情</a>]</span>
                </div>
            </div>
            <ul class="arlist">
                <%for (int i = 1; i < xiaochi.Count; i++)
                  {
                      var xc = xiaochi[i];
                %>
                <li><span></span><a href="fooddetail.aspx?id=<%=xc.id %>" target="_blank"><%=xc.title %></a></li>
                <%} %>
            </ul>
            <%} %>

            <img src="css/images/title03.png" style="margin-top: 15px;" />
            <div class="title"></div>
            <%
                if (resturants != null && resturants.Count > 0)
                {
                    var firstresturant = resturants.First();
            %>
            <div class="best">
                <%if (!string.IsNullOrEmpty(firstresturant.img))
                  { %>
                <img src="<%=firstresturant.img %>" />
                <%}
                  else
                  { %>
                <img src="css/images/tmp13.png" />
                <%} %>
                <div>
                    <h4><%=firstresturant.resturantname %></h4>
                    <span><%=Utility.CutString(Utility.StripHtml(firstresturant.introduce),11,true) %>[<a href="restdetail.aspx?id=<%=firstresturant.id %>" target="_blank">[详情</a>]</span>
                </div>
            </div>
            <ul class="arlist">
                <%for (int i = 1; i < resturants.Count; i++)
                  {
                      var resturant = resturants[i];
                %>
                <li><span></span><a href="restdetail.aspx?id=<%=resturant.id %>" target="_blank"><%=resturant.resturantname %></a></li>
                <%} %>
            </ul>
            <%} %>
            <div class="clear"></div>
        </div>
    </div>
</asp:Content>
